<%--
  Created by IntelliJ IDEA.
  Author: WaveHi
  Contact: HJBWaveHi@163.com
  Date: 26/9/2021
  Time: 下午 10:29
  Description: 
  Version: 1.0
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="/page/common/head.jsp"%>
    <title>user_edit</title>
    <script type="text/javascript" src="/static/js/user_edit.js"></script>
</head>
<body>
<span id="user-edit-errorMsg">${requestScope.errorMsg}</span>
<form action="userServlet" id="user-edit-form" method="POST" enctype="multipart/form-data">
    <input type="hidden" name="id" value="${requestScope.user.id}"/>
    <input type="hidden" name="action" value="update">
    <input type="text" name="username" value="${requestScope.user.username}" id="username">
    <input type="text" name="password" value="${requestScope.user.password}" id="password">
    <input type="file" name="headImage" id="headImage">
    <button id="user-edit-btn" type="submit" form="user-edit-form">Update</button>
</form>
</body>
</html>
